<template>


  <div id="app">

    <span>消息</span>

    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" @click="sy" >首页</van-tabbar-item>
      <van-tabbar-item icon="search" @click="xx" >消息</van-tabbar-item>
      <van-tabbar-item icon="friends-o" @click="wd">我的</van-tabbar-item>
    </van-tabbar>
  </div>

</template>

<script>
export default {
  data() {
    return {
      active: 1
    }
  },
  methods:{
    sy(){
      this.$router.push('/')
    },
    xx(){
      this.$router.push('/xiaoxi')
    },
    wd(){
      this.$router.push('/wode')
    }
  }
}
</script>



<style scoped>

</style>